#include <stdio.h>

#include "utstring.h"

int main(){
	UT_string *s, *t;

	utstring_new(s);
	utstring_new(t);

	utstring_printf(s, "Hello ");
	utstring_printf(s, "World!");

	utstring_printf(t, "Hi ");
	utstring_printf(t, "there.");

	utstring_concat(s, t);
	printf("length: %zu\n", utstring_len(s));
	printf("%s\n", utstring_body(s));

	utstring_free(s);
	utstring_free(t);

	return 0;
}
